home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / Acere (PowerPlant, Game) 1.2 / AcereÄ.sit / Acereƒ / Code / AcereApp.h < prev    next >
Text File  |  1995-02-14  |  1KB  |  50 lines

  1. // ===========================================================================
  2. //    AcereApp.h                    ⌐1994 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #define    OurCreator         'Fƒƒl'
  8. #define    GameFileType    'FƒGm'
  9.  
  10. #include <LDocApplication.h>
  11. #include <LListener.h>
  12.  
  13. class    CardDeck;
  14. class    CTextDoc;
  15. class    LDialogBox;
  16.  
  17. class    AcereApp : public LDocApplication,
  18.                        public LListener  {
  19. public:
  20.  
  21.     CTextDoc            *ourDoc;
  22.     LDialogBox            *aboutBox;
  23.     
  24.     CIconHandle            suitPats[4][2];
  25.     
  26.     Boolean                    balloonsActive;
  27.     
  28.                             AcereApp();
  29.     virtual                 ~AcereApp();
  30.     
  31.     virtual void            StartUp();
  32.         
  33.     virtual Boolean            AllowSubRemoval(LCommander *inSub);
  34.  
  35.     virtual Boolean            ObeyCommand(CommandT inCommand, void *ioParam = nil);
  36.     virtual void            FindCommandStatus(CommandT inCommand,
  37.                                 Boolean &outEnabled, Boolean &outUsesMark,
  38.                                 Char16 &outMark, Str255 outName);
  39.  
  40.     virtual void            ListenToMessage(MessageT inMessage, void *ioParam);
  41.  
  42.     virtual void            ShowAboutBox();
  43.     virtual void            OpenDocument(FSSpec *inMacFSSpec);
  44.     virtual LModelObject*    MakeNewDocument();
  45.     virtual void            ChooseDocument();
  46.     virtual void             ProcessNextEvent();
  47. };
  48.  
  49. extern    AcereApp    *theApp;
  50. extern    CardDeck    *theDeck;